Skip to content

feat: add environment column to --list and --list-csv (#1837) - #1838

Merged
firecow merged 1 commit into
firecow:masterfrom
bcouetil:feat/environment-in-list
May 9, 2026
Merged

feat: add environment column to --list and --list-csv (#1837)#1838
firecow merged 1 commit into
firecow:masterfrom
bcouetil:feat/environment-in-list

Conversation

@bcouetil

@bcouetil bcouetil commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Display the environment name in --list and --list-csv outputs, placed just before the needs column. Jobs without an environment show an empty value. The list-environment test expects workflow:rules:variables resolution (PR #1833) and will fail until that feature is merged.

Closes #1837

Screenshot 2026-04-20 at 16 06 57

Summary by cubic

Add an environment column to --list and --list-csv, placed before the needs column, so you can see each job’s target environment. Jobs without an environment show a blank value.

  • New Features
    • --list: adds an "environment" column and prints job.environment.name (blank if none).
    • --list-csv: adds an "environment" field after allowFailure.
    • Tests: updates existing list outputs and adds a list-environment case. The list-environment test depends on workflow:rules:variables resolution (see PR feat: implement workflow:rules:variables support (#1832) #1833) to resolve $DEPLOY_ENV.

Written for commit b0a6cdb. Summary will update on new commits.

@bcouetil
bcouetil requested a review from firecow April 20, 2026 14:07
@bcouetil bcouetil self-assigned this Apr 20, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@bcouetil
bcouetil force-pushed the feat/environment-in-list branch from b0a6cdb to 926cb3e Compare April 30, 2026 22:04
Display the environment name in --list and --list-csv outputs, placed
just before the needs column. Jobs without an environment show an empty
value. The list-environment test expects workflow:rules:variables
resolution (PR firecow#1833) and will fail until that feature is merged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bcouetil
bcouetil force-pushed the feat/environment-in-list branch from 926cb3e to e1fd4f0 Compare April 30, 2026 22:18
@bcouetil

Copy link
Copy Markdown
Collaborator Author

Since you merged the #1833 @firecow , I've rebase and fixed tests.

I think my work here is done too 😊

@firecow firecow left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff: clean, focused addition of an environment column to --list / --list-csv with matching test updates. The dep on #1833 is already merged. LGTM.

@firecow
firecow merged commit c50ff6c into firecow:master May 9, 2026
13 checks passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request May 13, 2026
This MR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
| [npm:gitlab-ci-local](https://github.com/firecow/gitlab-ci-local) | `4.71.0` → `4.72.0` | ![age](https://developer.mend.io/api/mc/badges/age/npm/gitlab-ci-local/4.72.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/gitlab-ci-local/4.72.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/gitlab-ci-local/4.71.0/4.72.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/gitlab-ci-local/4.71.0/4.72.0?slim=true) |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>firecow/gitlab-ci-local (npm:gitlab-ci-local)</summary>

### [`v4.72.0`](https://github.com/firecow/gitlab-ci-local/releases/tag/4.72.0)

[Compare Source](firecow/gitlab-ci-local@4.71.0...4.72.0)

#### What's Changed

- feat: support spec:inputs for root pipeline via --input and --inputs-file by [@&#8203;gyanranjan](https://github.com/gyanranjan) in [#&#8203;1814](firecow/gitlab-ci-local#1814)
- feat: implement workflow:rules:variables support ([#&#8203;1832](firecow/gitlab-ci-local#1832)) by [@&#8203;bcouetil](https://github.com/bcouetil) in [#&#8203;1833](firecow/gitlab-ci-local#1833)
- chore(deps): lock file maintenance by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1834](firecow/gitlab-ci-local#1834)
- chore(deps): update all non-major by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1835](firecow/gitlab-ci-local#1835)
- fix: pass artifact paths to rsync via `--files-from`  by [@&#8203;Paul-Goulpie](https://github.com/Paul-Goulpie) in [#&#8203;1825](firecow/gitlab-ci-local#1825)
- chore(deps): update sonarsource/sonarqube-scan-action action to v8 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1842](firecow/gitlab-ci-local#1842)
- fix: connect service containers to local registry network by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1847](firecow/gitlab-ci-local#1847)
- test: ignore 'still running' heartbeat in stdout assertions by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1851](firecow/gitlab-ci-local#1851)
- chore(deps): update github/codeql-action action to v4.35.4 by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1843](firecow/gitlab-ci-local#1843)
- chore(deps): lock file maintenance by [@&#8203;renovate](https://github.com/renovate)\[bot] in [#&#8203;1845](firecow/gitlab-ci-local#1845)
- feat: add environment column to --list and --list-csv ([#&#8203;1837](firecow/gitlab-ci-local#1837)) by [@&#8203;bcouetil](https://github.com/bcouetil) in [#&#8203;1838](firecow/gitlab-ci-local#1838)
- feat: support needs\[].parallel.matrix and matrix expressions by [@&#8203;inistor](https://github.com/inistor) in [#&#8203;1848](firecow/gitlab-ci-local#1848)
- fix: reject empty rules array instead of silently skipping job by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1852](firecow/gitlab-ci-local#1852)
- fix: respect IGNORE\_PREDEFINED\_VARS in .gitlab-ci-local-env by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1853](firecow/gitlab-ci-local#1853)
- fix: reject ${VAR} in rules:if by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1854](firecow/gitlab-ci-local#1854)
- fix: wait for child stdio close before resolving exec by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1855](firecow/gitlab-ci-local#1855)
- chore: pin third-party actions to commit SHAs by [@&#8203;firecow](https://github.com/firecow) in [#&#8203;1857](firecow/gitlab-ci-local#1857)

#### New Contributors

- [@&#8203;gyanranjan](https://github.com/gyanranjan) made their first contribution in [#&#8203;1814](firecow/gitlab-ci-local#1814)
- [@&#8203;inistor](https://github.com/inistor) made their first contribution in [#&#8203;1848](firecow/gitlab-ci-local#1848)

**Full Changelog**: <firecow/gitlab-ci-local@4.71.0...4.72.0>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNzMuNSIsInVwZGF0ZWRJblZlciI6IjQzLjE3My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6bWlub3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add environment name to --list and --list-csv

2 participants